package com.hksj.cbm.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zengke
 * @version 1.0
 * @see DictionaryItemVO
 * @since 2024/7/17 18:08
 */

@Data
public class DictionaryItemVO {

    @ApiModelProperty(value = "字典明细id")
    private String id;

    @ApiModelProperty(value = "父节点id")
    private String parentId;

    @ApiModelProperty(value = "树路径")
    private String path;

    @ApiModelProperty(value = "排序序号")
    private String sortIndex;

    @ApiModelProperty(value = "树层级")
    @TableField(value = "_level")
    private Integer level;

    @ApiModelProperty(value = "字典id")
    private String dictId;

    @ApiModelProperty(value = "选项名称")
    private String name;

    @ApiModelProperty(value = "值")
    private String value;

    @ApiModelProperty(value = "文本内容")
    private String text;

    @ApiModelProperty(value = "值类型")
    private String valueType;

    @ApiModelProperty(value = "状态 (0禁用,1启用)")
    private Integer status;

    @ApiModelProperty(value = "说明")
    private String describe;

    @ApiModelProperty(value = "检索码")
    private String searchCode;

    @ApiModelProperty(value = "序列号,同一个字典中的选项不能重复,且不能修改")
    private Integer ordinal;

    @ApiModelProperty(value = "子节点")
    private List<DictionaryItemVO> children = new ArrayList<>();
}
